home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Interprogram Messaging Manager / IPM MessageBoard / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-23  |  1.6 KB  |  61 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------------------
  2.  *
  3.  * IPM MessageBoard AOCE Sample
  4.  *
  5.  * ©1992-1993 Apple Computer
  6.  *
  7.  -------------------------------------------------------------------------------------*/
  8. /*
  9.  * globals.c -- repository for global variables
  10.  *
  11.  * change history:
  12.  *
  13.  * SJF        2/12/93        1.0b1        udpate to AOCE beta seed
  14.  * SJF        11/6/91        1.0d1        initial coding
  15.  *
  16.  */
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifndef __DIALOGS__
  23. #include <Dialogs.h>
  24. #endif
  25.  
  26. #ifndef __OCEMESSAGING__
  27. #include <OCEMessaging.h>
  28. #endif
  29.  
  30. #include "const.h"
  31.  
  32. /* configuration flags */
  33.  
  34. Boolean    gHasWaitNextEvent;            // true if we have waitnextevent available
  35.  
  36. /* action flags */
  37.  
  38. Boolean    gDone;                        // application should terminate when set
  39. Boolean    gInBackground;                // true if application is in the background
  40.  
  41. /* globals */
  42.  
  43. DialogPtr gMainDialog;                // main dialog window
  44. Str255    gMessageList[kMaxMessages];    // array of messages received/sent
  45. OCEPackedRecipient *gDestList[kMaxDestinations];    // array of destinations
  46.  
  47. short    gNumMessages;                // number of messages
  48. short    gNumDestinations;            // number of destinations
  49.  
  50. IPMContextRef    gIPMContext;        // context for IPM queues
  51. IPMQueueRef        gIPMQueueRef;        // our IPM Queue Reference
  52.  
  53. OCERecipient    gLocalQueue;        // our local queue
  54. char            gLocalQXtn[256];    // our local queue's extension buffer
  55.  
  56. AuthIdentity    gIdentity;            // our identity (must be 0 for serverless)
  57.  
  58. short    gRadioBtnSelected;            // current radio button selection for destination
  59.  
  60. RString gAllTypes = {smRoman,1,{'='}};
  61. RString *gTypesList[] = {&gAllTypes};